package org.memesis.pandorasbook.ui;

import javax.swing.text.Element;
import javax.swing.text.View;
import javax.swing.text.html.HTMLEditorKit.HTMLFactory;

public class PandoraHTMLViewFactory extends HTMLFactory {
	public View create(Element elem) {
		String kind = elem.getName();
		if (kind != null) {
			if (kind == "regular") { //TODO: Find out what constant this is supposed to be
				return new PandoraInlineView(elem);
			}
		}
		return super.create(elem);
	}
}
